package com.woniu.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 类型编码（a:新电商；b:家宽云平台；c:政企集中服务平台；d:标准化业务受理）
 * @TableName business_type
 */
@TableName(value ="business_type")
public class BusinessType implements Serializable {
    /**
     * 类型ID
     */
    @TableId
    private String id;

    /**
     * 业务名称
     */
    private String businessName;

    /**
     * 订单类型ID
     */
    private String orderTypeId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 类型ID
     */
    public String getId() {
        return id;
    }

    /**
     * 类型ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 业务名称
     */
    public String getBusinessName() {
        return businessName;
    }

    /**
     * 业务名称
     */
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    /**
     * 订单类型ID
     */
    public String getOrderTypeId() {
        return orderTypeId;
    }

    /**
     * 订单类型ID
     */
    public void setOrderTypeId(String orderTypeId) {
        this.orderTypeId = orderTypeId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusinessType other = (BusinessType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBusinessName() == null ? other.getBusinessName() == null : this.getBusinessName().equals(other.getBusinessName()))
            && (this.getOrderTypeId() == null ? other.getOrderTypeId() == null : this.getOrderTypeId().equals(other.getOrderTypeId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBusinessName() == null) ? 0 : getBusinessName().hashCode());
        result = prime * result + ((getOrderTypeId() == null) ? 0 : getOrderTypeId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", businessName=").append(businessName);
        sb.append(", orderTypeId=").append(orderTypeId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}